<include file="Public/header"/>

<div id="app">
    <!-- sidebar -->
    <include file="Public/left"/>
    <!-- / sidebar -->
    <div class="app-content">
        <!-- start: TOP NAVBAR -->
        <include file="Public/headernav"/>
        <!-- end: TOP NAVBAR -->
        <div class="main-content">
            <div class="wrap-content container" id="container">
                <!-- start: PAGE TITLE -->
                <section id="page-title">
                    <div class="row">
                        <div class="col-sm-8">
                            <h1 class="mainTitle">{$msgtitle}</h1>
                            <span class="mainDescription">中奖信息</span>
                        </div>
                    </div>
                </section>
                <!-- end: PAGE TITLE -->
                <!-- start: YOUR CONTENT HERE -->
                <div class="container-fluid container-fullw bg-white">
                    <!-- S奖品类型为商品-->
                   <if condition="$_GET['type'] eq 5">
                        <div class="row">
                            <div class="col-md-5">
                                <div class="form-group">
                                    <label class="control-label">
                                        奖品信息
                                    </label>
                                </div>
                                <div class="form-group">
                                    <label class="control-label">
                                        奖品类型：
                                    </label>
                                    {$data.type_name}
                                </div>
                                <div class="form-group">
                                    <label class="control-label">
                                        商品标题：
                                    </label>
                                    <a href="{:U('wap/goods/goods_detail')}?id={$data.goods_id}">{$data.goods_name}</a>
                                </div>

                                <div class="form-group">
                                    <label class="control-label">
                                        发货状态：
                                    </label>
                                    {$data['status']?'已发货':'待发货'}
                                </div>
                                <if condition="!empty($data['invoice_no'])">
                                <div class="form-group">
                                    <label class="control-label">
                                        发货单号：
                                    </label>
                                    {$data.invoice_no}
                                </div>
                                </if>
                                <if condition="!(empty($data['invoice_time']))">
                                <div class="form-group">
                                    <label class="control-label">
                                        发货时间：
                                    </label>
                                        {$data.invoice_time|date='Y-m-d',###}
                                </div>
                                </if>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label">
                                        收货人信息
                                    </label>
                                </div>
                                <if condition="empty($data['address_name']) and empty($data['address'])">
                                    <div class="form-group">
                                        <label class="control-label">
                                            该用户暂未设置收货信息
                                        </label>
                                    </div>
                                    <else/>
                                <div class="form-group">
                                    <label class="control-label">
                                        收货人：
                                    </label>
                                    {$data.consignee}
                                </div>
                                <div class="form-group">
                                    <label class="control-label">
                                        联系电话：
                                    </label>
                                    {$data.mobile}&nbsp;&nbsp;&nbsp;&nbsp;{$data.tel}
                                </div>
                                <div class="form-group">
                                    <label class="control-label">
                                        地址：
                                    </label>
                                    {$data.address_name}{$data.address}
                                </div>
                                <if condition="!empty($data['zipcode'])">
                                    <div class="form-group">
                                        <label class="control-label">
                                            邮编：
                                        </label>
                                        {$data.zipcode}
                                    </div>
                                </if>
                                <if condition="!empty($data['best_time'])">
                                    <div class="form-group">
                                        <label class="control-label">
                                            最佳送货时间：
                                        </label>
                                        {$data.best_time}
                                    </div>
                                </if>
                                <if condition="!empty($data['sign_building'])">
                                    <div class="form-group">
                                        <label class="control-label">
                                            送货地址标志性建筑：
                                        </label>
                                        {$data.sign_building}
                                    </div>
                                </if>
                                <if condition="!empty($data['email'])">
                                    <div class="form-group">
                                        <label class="control-label">
                                            email：
                                        </label>
                                        {$data.email}
                                    </div>
                                </if>
                                </if>
                            </div>
                        </div>
                    </if>
                    <!-- E奖品类型为商品-->
                    <!-- S奖品类型为话费-->
                    <if condition="$_GET['type'] eq 3">
                        <div class="row">
                            <div class="form-group">
                                <label class="control-label">
                                    奖品类型：
                                </label>
                                {$data.type_name}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    用户名：
                                </label>
                                {$data.member_name}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    手机号:
                                </label>
                                {$data.mobile}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    话费:
                                </label>
                                {$data.draw_value}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    抽奖时间:
                                </label>
                                {$data.add_time|date='Y-m-d',###}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    中奖状态:
                                </label>
                                {$data.status}
                            </div>
                            <if condition="!empty($data['recharge_img'])">
                            <div class="form-group">
                                <label class="control-label">
                                    充值图片:
                                </label>
                                <a href="{$data.recharge_img}"><img src="{$data.recharge_img}" class="img-rounded"
                                     style="max-width:50px;max-height:50px;" alt=""></a>
                            </div>
                            </if>
                            <if condition="!empty($data['recharge_no'])">
                                <div class="form-group">
                                    <label class="control-label">
                                        充值单号:
                                    </label>
                                    {$data.recharge_no}
                                </div>
                            </if>
                            <if condition="!empty($data['recharge_remark'])">
                                <div class="form-group">
                                    <label class="control-label">
                                        充值备注:
                                    </label>
                                    {$data.recharge_remark}
                                </div>
                            </if>
                        </div>
                    </if>
                    <!-- E奖品类型为话费-->
                    <!-- S奖品类型为其它-->
                    <in name="_GET['type']" value="1,2,4">
                        <div class="row">
                            <div class="form-group">
                                <label class="control-label">
                                    奖品类型：
                                </label>
                                {$data.type_name}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    用户名：
                                </label>
                                {$data.member_name}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    奖品面值:
                                </label>
                                {$data.draw_value}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    抽奖时间:
                                </label>
                                {$data.add_time|date='Y-m-d',###}
                            </div>
                            <div class="form-group">
                                <label class="control-label">
                                    中奖状态:
                                </label>
                                {$data.log_status}
                            </div>
                        </div>
                    </in>
                    <!-- E奖品类型为其它-->
                </div>
                <!-- end: YOUR CONTENT HERE -->
            </div>
        </div>
    </div>
    <!--  FOOTER and SETTINGS -->
    <include file="Public/footer"/>
    <!-- end: FOOTER -->
    <!-- start: OFF-SIDEBAR -->
    <!-- end: OFF-SIDEBAR -->
</div>
<!-- start: MAIN JAVASCRIPTS -->
<include file="Public/javascript"/>
<!-- end: CLIP-TWO JAVASCRIPTS -->

<!-- start: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<script src="__PUBLIC__/bootstrap/vendor/ckeditor/ckeditor.js"></script>
<script src="__PUBLIC__/bootstrap/vendor/ckeditor/adapters/jquery.js"></script>
<script src="__PUBLIC__/bootstrap/vendor/jquery-validation/jquery.validate.min.js"></script>
<!-- end: JAVASCRIPTS REQUIRED FOR THIS PAGE ONLY -->
<!-- start: CLIP-TWO JAVASCRIPTS -->
<!-- <script src="__PUBLIC__/bootstrap/assets/js/main.js"></script> -->
<!-- start: JavaScript Event Handlers for this page -->
<!--<script src="__PUBLIC__/bootstrap/assets/js/form-validation.js"></script>-->
<!-- end: JavaScript Event Handlers for this page -->
</body>
</html>
